package me.zhengjie.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

import static org.springframework.http.HttpStatus.BAD_REQUEST;

/**
 * 爬虫通用异常
 * @author Administrator
 */
@Getter
public class SpiderRunningException extends RuntimeException {
    private Integer status = BAD_REQUEST.value();

    public SpiderRunningException(String msg){
        super(msg);
    }

    public SpiderRunningException(HttpStatus status, String msg){
        super(msg);
        this.status = status.value();
    }
}
